<!--
 * @Author: Wangtao
 * @Date: 2020-09-21 09:55:09
 * @LastEditors: Wangtao
 * @LastEditTime: 2021-03-23 15:25:13
-->
<template>
  <div class="drawer-container">
    <div>
      <slot name="prompt"></slot>
    </div>
    <div class="content">
      <slot name="content"></slot>
    </div>
    <div class="operation">
      <div>
        <slot name="remove"></slot>
      </div>
      <div>
        <slot name="operation"></slot>
      </div>
    </div>
  </div>
</template>

<style lang="stylus" scoped>
.drawer-container
  height 100%
  display flex
  flex-direction column
  justify-content space-between
  box-sizing border-box
  .content
    padding 24px 0 24px 0
    height calc(100% - 50px)
    overflow scroll
    box-sizing border-box
  .operation
    display: flex;
    justify-content: space-between;
    padding: 0 0 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 24px;
    z-index: 2;
    >>> .el-button--danger
      background: unset;
      border: unset;
      color: #FC5926
  >>> .el-select
    width 100%
  >>> .select-group
    display flex
  >>> .select-box
    margin-right 10px
  >>> .select-box:nth-last-of-type(1)
    margin-right 0px
  >>> .select-box
    width 50%
</style>
